imageware
Class DoublePointwise

java.lang.Object
  extended by imageware.DoubleBuffer
      extended by imageware.DoubleAccess
          extended by imageware.DoublePointwise
All Implemented Interfaces:
Access, Buffer, Pointwise
Direct Known Subclasses:
DoubleProcess

public class DoublePointwise
extends DoubleAccess
implements Pointwise

Class DoublePointwise.


Field Summary
 
Fields inherited from class imageware.DoubleBuffer
data, nx, nxy, ny, nz
 
Constructor Summary
protected DoublePointwise(byte[][][] array, int mode)
           
protected DoublePointwise(byte[][] array, int mode)
           
protected DoublePointwise(byte[] array, int mode)
           
protected DoublePointwise(double[][][] array, int mode)
           
protected DoublePointwise(double[][] array, int mode)
           
protected DoublePointwise(double[] array, int mode)
           
protected DoublePointwise(float[][][] array, int mode)
           
protected DoublePointwise(float[][] array, int mode)
           
protected DoublePointwise(float[] array, int mode)
           
protected DoublePointwise(java.awt.Image image, int mode)
           
protected DoublePointwise(ij.ImageStack stack, byte chan)
           
protected DoublePointwise(ij.ImageStack stack, int mode)
           
protected DoublePointwise(int nx, int ny, int nz)
           
protected DoublePointwise(short[][][] array, int mode)
           
protected DoublePointwise(short[][] array, int mode)
           
protected DoublePointwise(short[] array, int mode)
           
 
Method Summary
 void abs()
          Compute the absolute value of this imageware.
 void add(double constant)
          Add a constant value to this imageware.
 void addGaussianNoise(double amplitude)
          Add a gaussian noise with a range [-amplitude..amplitude].
 void addSaltPepper(double amplitudeSalt, double amplitudePepper, double percentageSalt, double percentagePepper)
          Add a salt and pepper noise.
 void addUniformNoise(double amplitude)
          Add a uniform noise with a range [-amplitude..amplitude].
 ij.ImageStack buildImageStack()
          Build an ImageStack of ImageJ.
 void clip()
          Clip the pixel intensity into [0..255].
 void clip(double minLevel, double maxLevel)
          Clip the pixel intensity into [minLevel..maxLevel].
 void divide(double constant)
          Divide by a constant value to this imageware.
 void exp()
          Compute the exponential of this imageware.
 void fillConstant(double value)
          Fill this imageware with a constant value.
 void fillGaussianNoise(double amplitude)
          Generate a gaussian noise with a range [-amplitude..amplitude].
 void fillRamp()
          Fill this imageware with ramp.
 void fillSaltPepper(double amplitudeSalt, double amplitudePepper, double percentageSalt, double percentagePepper)
          Generate a salt and pepper noise.
 void fillUniformNoise(double amplitude)
          Generate a uniform noise with a range [-amplitude..amplitude].
 void invert()
          Invert the pixel intensity.
 void log()
          Compute the log of this imageware.
 void multiply(double constant)
          Multiply a constant value to this imageware.
 void negate()
          Negate the pixel intensity.
 void pow(double a)
          Compute the power of a of this imageware.
 void rescale()
          Rescale the pixel intensity into [0..255].
 void rescale(double minLevel, double maxLevel)
          Rescale the pixel intensity into [minLevel..maxLevel].
 void rescaleCenter(double minLevel, double maxLevel)
          Rescale the pixel intensity with a linear curve passing through (maxLevel-minLevel)/2 at the 0 input intensity.
 void sqr()
          Compute the square of this imageware.
 void sqrt()
          Compute the square root of this imageware.
 void subtract(double constant)
          Subtract a constant value to this imageware.
 void threshold(double thresholdValue)
          Threshold a imageware in two levels 0 and 255.
 void threshold(double thresholdValue, double minLevel, double maxLevel)
          Threshold a imageware in two levels minLevel and maxLevel.
 void thresholdHard(double thresholdValue)
          Apply a hard thresholding.
 void thresholdSoft(double thresholdValue)
          Apply a soft thresholding.
 
Methods inherited from class imageware.DoubleAccess
getBlockX, getBlockX, getBlockX, getBlockX, getBlockXY, getBlockXY, getBlockXY, getBlockXY, getBlockXYZ, getBlockXYZ, getBlockXYZ, getBlockXYZ, getBlockXZ, getBlockXZ, getBlockXZ, getBlockXZ, getBlockY, getBlockY, getBlockY, getBlockY, getBlockYZ, getBlockYZ, getBlockYZ, getBlockYZ, getBlockZ, getBlockZ, getBlockZ, getBlockZ, getBoundedX, getBoundedX, getBoundedX, getBoundedX, getBoundedXY, getBoundedXY, getBoundedXY, getBoundedXY, getBoundedXYZ, getBoundedXYZ, getBoundedXYZ, getBoundedXYZ, getBoundedXZ, getBoundedXZ, getBoundedXZ, getBoundedXZ, getBoundedY, getBoundedY, getBoundedY, getBoundedY, getBoundedYZ, getBoundedYZ, getBoundedYZ, getBoundedYZ, getBoundedZ, getBoundedZ, getBoundedZ, getBoundedZ, getInterpolatedPixel, getInterpolatedPixel, getNeighborhoodX, getNeighborhoodX, getNeighborhoodX, getNeighborhoodX, getNeighborhoodXY, getNeighborhoodXY, getNeighborhoodXY, getNeighborhoodXY, getNeighborhoodXYZ, getNeighborhoodXYZ, getNeighborhoodXYZ, getNeighborhoodXYZ, getNeighborhoodXZ, getNeighborhoodXZ, getNeighborhoodXZ, getNeighborhoodXZ, getNeighborhoodY, getNeighborhoodY, getNeighborhoodY, getNeighborhoodY, getNeighborhoodYZ, getNeighborhoodYZ, getNeighborhoodYZ, getNeighborhoodYZ, getNeighborhoodZ, getNeighborhoodZ, getNeighborhoodZ, getNeighborhoodZ, getPixel, getPixel, putBoundedX, putBoundedX, putBoundedX, putBoundedX, putBoundedXY, putBoundedXY, putBoundedXY, putBoundedXY, putBoundedXYZ, putBoundedXYZ, putBoundedXYZ, putBoundedXYZ, putBoundedXZ, putBoundedXZ, putBoundedXZ, putBoundedXZ, putBoundedY, putBoundedY, putBoundedY, putBoundedY, putBoundedYZ, putBoundedYZ, putBoundedYZ, putBoundedYZ, putBoundedZ, putBoundedZ, putBoundedZ, putBoundedZ, putPixel
 
Methods inherited from class imageware.DoubleBuffer
getDepth, getDimension, getHeight, getSize, getSizeX, getSizeY, getSizeZ, getSliceByte, getSliceDouble, getSliceFloat, getSliceShort, getTotalSize, getType, getTypeToString, getVolume, getWidth, getX, getX, getX, getX, getX, getXY, getXY, getXY, getXY, getXY, getXYZ, getXYZ, getXYZ, getXYZ, getXYZ, getXZ, getXZ, getXZ, getXZ, getXZ, getY, getY, getY, getY, getY, getYZ, getYZ, getYZ, getYZ, getYZ, getZ, getZ, getZ, getZ, getZ, isSameSize, putX, putX, putX, putX, putX, putXY, putXY, putXY, putXY, putXY, putXYZ, putXYZ, putXYZ, putXYZ, putXYZ, putXZ, putXZ, putXZ, putXZ, putXZ, putY, putY, putY, putY, putY, putYZ, putYZ, putYZ, putYZ, putYZ, putZ, putZ, putZ, putZ, putZ, throw_constructor, throw_constructor, throw_get, throw_put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface imageware.Access
getBlockX, getBlockX, getBlockX, getBlockX, getBlockXY, getBlockXY, getBlockXY, getBlockXY, getBlockXYZ, getBlockXYZ, getBlockXYZ, getBlockXYZ, getBlockXZ, getBlockXZ, getBlockXZ, getBlockXZ, getBlockY, getBlockY, getBlockY, getBlockY, getBlockYZ, getBlockYZ, getBlockYZ, getBlockYZ, getBlockZ, getBlockZ, getBlockZ, getBlockZ, getBoundedX, getBoundedX, getBoundedX, getBoundedX, getBoundedXY, getBoundedXY, getBoundedXY, getBoundedXY, getBoundedXYZ, getBoundedXYZ, getBoundedXYZ, getBoundedXYZ, getBoundedXZ, getBoundedXZ, getBoundedXZ, getBoundedXZ, getBoundedY, getBoundedY, getBoundedY, getBoundedY, getBoundedYZ, getBoundedYZ, getBoundedYZ, getBoundedYZ, getBoundedZ, getBoundedZ, getBoundedZ, getBoundedZ, getInterpolatedPixel, getInterpolatedPixel, getNeighborhoodX, getNeighborhoodX, getNeighborhoodX, getNeighborhoodX, getNeighborhoodXY, getNeighborhoodXY, getNeighborhoodXY, getNeighborhoodXY, getNeighborhoodXYZ, getNeighborhoodXYZ, getNeighborhoodXYZ, getNeighborhoodXYZ, getNeighborhoodXZ, getNeighborhoodXZ, getNeighborhoodXZ, getNeighborhoodXZ, getNeighborhoodY, getNeighborhoodY, getNeighborhoodY, getNeighborhoodY, getNeighborhoodYZ, getNeighborhoodYZ, getNeighborhoodYZ, getNeighborhoodYZ, getNeighborhoodZ, getNeighborhoodZ, getNeighborhoodZ, getNeighborhoodZ, getPixel, getPixel, putBoundedX, putBoundedX, putBoundedX, putBoundedX, putBoundedXY, putBoundedXY, putBoundedXY, putBoundedXY, putBoundedXYZ, putBoundedXYZ, putBoundedXYZ, putBoundedXYZ, putBoundedXZ, putBoundedXZ, putBoundedXZ, putBoundedXZ, putBoundedY, putBoundedY, putBoundedY, putBoundedY, putBoundedYZ, putBoundedYZ, putBoundedYZ, putBoundedYZ, putBoundedZ, putBoundedZ, putBoundedZ, putBoundedZ, putPixel
 
Methods inherited from interface imageware.Buffer
getDepth, getDimension, getHeight, getSize, getSizeX, getSizeY, getSizeZ, getSliceByte, getSliceDouble, getSliceFloat, getSliceShort, getTotalSize, getType, getTypeToString, getVolume, getWidth, getX, getX, getX, getX, getX, getXY, getXY, getXY, getXY, getXY, getXYZ, getXYZ, getXYZ, getXYZ, getXYZ, getXZ, getXZ, getXZ, getXZ, getXZ, getY, getY, getY, getY, getY, getYZ, getYZ, getYZ, getYZ, getYZ, getZ, getZ, getZ, getZ, getZ, isSameSize, putX, putX, putX, putX, putX, putXY, putXY, putXY, putXY, putXY, putXYZ, putXYZ, putXYZ, putXYZ, putXYZ, putXZ, putXZ, putXZ, putXZ, putXZ, putY, putY, putY, putY, putY, putYZ, putYZ, putYZ, putYZ, putYZ, putZ, putZ, putZ, putZ, putZ
 

Constructor Detail

DoublePointwise

protected DoublePointwise(int nx,
                          int ny,
                          int nz)

DoublePointwise

protected DoublePointwise(java.awt.Image image,
                          int mode)

DoublePointwise

protected DoublePointwise(ij.ImageStack stack,
                          int mode)

DoublePointwise

protected DoublePointwise(ij.ImageStack stack,
                          byte chan)

DoublePointwise

protected DoublePointwise(byte[] array,
                          int mode)

DoublePointwise

protected DoublePointwise(byte[][] array,
                          int mode)

DoublePointwise

protected DoublePointwise(byte[][][] array,
                          int mode)

DoublePointwise

protected DoublePointwise(short[] array,
                          int mode)

DoublePointwise

protected DoublePointwise(short[][] array,
                          int mode)

DoublePointwise

protected DoublePointwise(short[][][] array,
                          int mode)

DoublePointwise

protected DoublePointwise(float[] array,
                          int mode)

DoublePointwise

protected DoublePointwise(float[][] array,
                          int mode)

DoublePointwise

protected DoublePointwise(float[][][] array,
                          int mode)

DoublePointwise

protected DoublePointwise(double[] array,
                          int mode)

DoublePointwise

protected DoublePointwise(double[][] array,
                          int mode)

DoublePointwise

protected DoublePointwise(double[][][] array,
                          int mode)
Method Detail

fillConstant

public void fillConstant(double value)
Fill this imageware with a constant value.

Specified by:
fillConstant in interface Pointwise
Parameters:
constant - the constant value

fillRamp

public void fillRamp()
Fill this imageware with ramp.

Specified by:
fillRamp in interface Pointwise

fillGaussianNoise

public void fillGaussianNoise(double amplitude)
Generate a gaussian noise with a range [-amplitude..amplitude].

Specified by:
fillGaussianNoise in interface Pointwise
Parameters:
amplitude - amplitude of the noise

fillUniformNoise

public void fillUniformNoise(double amplitude)
Generate a uniform noise with a range [-amplitude..amplitude].

Specified by:
fillUniformNoise in interface Pointwise
Parameters:
amplitude - amplitude of the noise

fillSaltPepper

public void fillSaltPepper(double amplitudeSalt,
                           double amplitudePepper,
                           double percentageSalt,
                           double percentagePepper)
Generate a salt and pepper noise.

Specified by:
fillSaltPepper in interface Pointwise
Parameters:
amplitudeSalt - amplitude of the salt noise
amplitudePepper - amplitude of the pepper noise
percentageSalt - percentage of the salt noise
percentagePepper - percentage of the pepper noise

buildImageStack

public ij.ImageStack buildImageStack()
Build an ImageStack of ImageJ.

Specified by:
buildImageStack in interface Pointwise

invert

public void invert()
Invert the pixel intensity.

Specified by:
invert in interface Pointwise

negate

public void negate()
Negate the pixel intensity.

Specified by:
negate in interface Pointwise

clip

public void clip()
Clip the pixel intensity into [0..255].

Specified by:
clip in interface Pointwise

clip

public void clip(double minLevel,
                 double maxLevel)
Clip the pixel intensity into [minLevel..maxLevel].

Specified by:
clip in interface Pointwise
Parameters:
minLevel - double value given the threshold
maxLevel - double value given the threshold

rescale

public void rescale()
Rescale the pixel intensity into [0..255].

Specified by:
rescale in interface Pointwise

rescale

public void rescale(double minLevel,
                    double maxLevel)
Rescale the pixel intensity into [minLevel..maxLevel].

Specified by:
rescale in interface Pointwise
Parameters:
minLevel - double value given the threshold
maxLevel - double value given the threshold

rescaleCenter

public void rescaleCenter(double minLevel,
                          double maxLevel)
Rescale the pixel intensity with a linear curve passing through (maxLevel-minLevel)/2 at the 0 input intensity.

Specified by:
rescaleCenter in interface Pointwise
Parameters:
minLevel - double value given the threshold
maxLevel - double value given the threshold

abs

public void abs()
Compute the absolute value of this imageware.

Specified by:
abs in interface Pointwise

log

public void log()
Compute the log of this imageware.

Specified by:
log in interface Pointwise

exp

public void exp()
Compute the exponential of this imageware.

Specified by:
exp in interface Pointwise

sqrt

public void sqrt()
Compute the square root of this imageware.

Specified by:
sqrt in interface Pointwise

sqr

public void sqr()
Compute the square of this imageware.

Specified by:
sqr in interface Pointwise

pow

public void pow(double a)
Compute the power of a of this imageware.

Specified by:
pow in interface Pointwise
Parameters:
a - exponent

add

public void add(double constant)
Add a constant value to this imageware.

Specified by:
add in interface Pointwise

multiply

public void multiply(double constant)
Multiply a constant value to this imageware.

Specified by:
multiply in interface Pointwise
Parameters:
constant - the constant value

subtract

public void subtract(double constant)
Subtract a constant value to this imageware.

Specified by:
subtract in interface Pointwise
Parameters:
constant - the constant value

divide

public void divide(double constant)
Divide by a constant value to this imageware.

Specified by:
divide in interface Pointwise
Parameters:
constant - the constant value

threshold

public void threshold(double thresholdValue)
Threshold a imageware in two levels 0 and 255. All the pixels values strictly greater than 'thresholdValue' and are set to 0. The remaining values are set to 255.

Specified by:
threshold in interface Pointwise
Parameters:
thresholdValue - double value given the threshold

threshold

public void threshold(double thresholdValue,
                      double minLevel,
                      double maxLevel)
Threshold a imageware in two levels minLevel and maxLevel. All the pixels values strictly greater than 'thresholdValue' and are set to maxLevel. The remaining values are set to minLevel.

Specified by:
threshold in interface Pointwise
Parameters:
thresholdValue - double value given the threshold
minLevel - double value given the minimum level
maxLevel - double value given the maximum level

thresholdSoft

public void thresholdSoft(double thresholdValue)
Apply a soft thresholding. All the pixels values strictly greater than '-thresholdValue' and stricty lower than 'thresholdValue' set to 0. The remaining positive values are reduced by 'thresholdvalue'; the remaining negative values are augmented by 'thresholdValue'.

Specified by:
thresholdSoft in interface Pointwise
Parameters:
thresholdValue - double value given the threshold

thresholdHard

public void thresholdHard(double thresholdValue)
Apply a hard thresholding. All the pixels values strictly greater than '-thresholdValue' and stricty lower than 'thresholdValue' are set to 0. The remaining values are unchanged.

Specified by:
thresholdHard in interface Pointwise
Parameters:
thresholdValue - double value given the threshold

addGaussianNoise

public void addGaussianNoise(double amplitude)
Add a gaussian noise with a range [-amplitude..amplitude].

Specified by:
addGaussianNoise in interface Pointwise
Parameters:
amplitude - amplitude of the noise

addUniformNoise

public void addUniformNoise(double amplitude)
Add a uniform noise with a range [-amplitude..amplitude].

Specified by:
addUniformNoise in interface Pointwise
Parameters:
amplitude - amplitude of the noise

addSaltPepper

public void addSaltPepper(double amplitudeSalt,
                          double amplitudePepper,
                          double percentageSalt,
                          double percentagePepper)
Add a salt and pepper noise.

Specified by:
addSaltPepper in interface Pointwise
Parameters:
amplitudeSalt - amplitude of the salt noise
amplitudePepper - amplitude of the pepper noise
percentageSalt - percentage of the salt noise
percentagePepper - percentage of the pepper noise